package com.example.dao;

import com.example.pojo.User;

/**
 * @author kongwg
 * @create 2021-01-23 20:25
 */
public class UserDaoImpl extends BaseDao implements UserDao {
    @Override
    public User queryByusernameAndpassword(String u, String p) {
        String sql = "select `username`,`password` from login where username=? and password=?";
        return query(User.class, sql, u, p);

    }
}
